import request from '@/utils/request'

// 查询出单记录列表
export function listSalesorderrecord(query) {
    return request({
        url: '/salesorderrecord/salesorderrecord/list',
        method: 'get',
        params: query
    })
}

// 查询出单记录详细
export function getSalesorderrecord(id) {
    return request({
        url: '/salesorderrecord/salesorderrecord/' + id,
        method: 'get'
    })
}

// 新增出单记录
export function addSalesorderrecord(data) {
    return request({
        url: '/salesorderrecord/salesorderrecord',
        method: 'post',
        data: data
    })
}

// 修改出单记录
export function updateSalesorderrecord(data) {
    return request({
        url: '/salesorderrecord/salesorderrecord',
        method: 'put',
        data: data
    })
}

// 删除出单记录
export function delSalesorderrecord(id) {
    return request({
        url: '/salesorderrecord/salesorderrecord/' + id,
        method: 'delete'
    })
}
